export const checkRule = (value: any) => {
    let reg = /^[A-Z0-9-]{1,20}$/;
    return reg.test(value);
};

export const checkUrl = (value: any) => {
    let reg = /^https?:\/\/.*/;
    return reg.test(value);
};